{% extends "base.html" %}

{% block main %}

	{% if subtitle %}
		<h2>{{ subtitle }}
			{% if rss_link %}<a href='{{ rss_link }}' target='_blank'><img src='/static/images/feed.gif' border='0' /></a>{% endif %}
		</h2>
	{% endif %}
	
	<!-- pagemarks start -->
	{% if pagemarks %}
	<div class='pagemarks'>
	{% for mark in pagemarks %}
	{% if mark.is_link %}
	<a href='{{ mark.url }}' class='{{ mark.css }}'>{{ mark.label }}</a>
	{% else %}
	<span class='{{ mark.css }}'>{{ mark.label }}</span>
	{% endif %}
	{% endfor %}
	</div>
	{% endif %}
	<!-- pagemarks end -->

	{% if posts %}
	<table class='list'>
	{% for p in posts %}
	<tr>
		<td><a href='/user/{{ p.userid }}/'>{{ p.userlabel }}</a></td>
		<td><a href='/p/{{ p.id }}/'>{{ p.subject }}</a></td>
		<td><span class='date'>{{ p.lastmodified_dt|datetimeformat('%Y/%m/%d %H:%M') }}</span></td>
	</tr>
	{% endfor %}
	</table>
	{% else %}
		<p>没有文章。</p>
	{% endif %}
	
	<!-- pagemarks start -->
	{% if pagemarks %}
	<div class='pagemarks'>
	{% for mark in pagemarks %}
	{% if mark.is_link %}
	<a href='{{ mark.url }}' class='{{ mark.css }}'>{{ mark.label }}</a>
	{% else %}
	<span class='{{ mark.css }}'>{{ mark.label }}</span>
	{% endif %}
	{% endfor %}
	</div>
	{% endif %}
	<!-- pagemarks end -->
	
	
	
{% endblock %}

{% block sidebar %}
	
{% endblock %}


